import { Button } from 'antd'
import { useRef } from 'react'
import Editor, { RefProps } from '../../../components/Editor/Editor'
function UserManage () {
  const editorRef = useRef<RefProps | null>(null)
  return (
    <div>
      <Editor ref={editorRef} height={600} />
      <Button onClick={() => {
        editorRef.current?.editor?.setHtml('<p>手动设置内容</p>')
      }}>设置内容</Button>
    </div>
  )
}

export default UserManage
